/**
 * 
 */
package com.icbc.ctpdemo.signin.opstep;

import com.icbc.cte.base.TranFailException;
import com.icbc.ctp.core.IContext;
import com.icbc.ctp.core.annotations.Input;
import com.icbc.ctp.core.annotations.Output;
import com.icbc.ctp.core.impl.OperationStep;
import com.icbc.ctpdemo.user.UserBean;

/**
 * TODO 类的描述：。 
 * <pre>
 *
 * </pre>
 *
 * <pre>
 * modify by KFZX-LVSX on 2014-12-29
 *    fix->1.
 *         2.
 * </pre> 
 */
@Input(name = "user", type = "java:com.icbc.ctpdemo.user.UserBean", mustInput = true, isVariable = true, isArray = false, description = "")
@Output(name = "user", type = "java:com.icbc.ctpdemo.user.UserBean", isArray = false, description = "")
public class BackupUserOpStep extends OperationStep {

	/* (non-Javadoc)
	 * @see com.icbc.ctp.core.impl.OperationStep#execute(com.icbc.ctp.core.IContext)
	 */
	@Override
	protected int execute(IContext arg0) throws TranFailException {
		UserBean user = (UserBean) getInputValue(arg0, "user");
		setOutputValue(arg0, "user", user);
		return 0;
	}

}
